home *** CD-ROM | disk | FTP | other *** search
/ Windows Expert / Windows Expert.iso / others / ole_101.zip / PATRON.ZIP / EXIT.C < prev    next >
C/C++ Source or Header  |  1992-04-13  |  831b  |  43 lines

  1. /*
  2.  * EXIT.C
  3.  *
  4.  * Functions for final cleanup of the application.
  5.  *
  6.  * Copyright(c) Microsoft Corp. 1992 All Rights Reserved
  7.  *
  8.  */
  9.  
  10. #include <windows.h>
  11. #include <ole.h>
  12. #include "oclient.h"
  13. #include "patron.h"
  14.  
  15.  
  16.  
  17. /*
  18.  * FApplicationExit
  19.  *
  20.  * Purpose:
  21.  *  Provides final cleanup of any objects and other actions that
  22.  *  must occur at closing time.
  23.  *
  24.  * Parameters:
  25.  *  pGlob           LPGLOBALS to global variable block.
  26.  *
  27.  * Return Value:
  28.  *  BOOL            TRUE if everything succeeds, FALSE otherwise.
  29.  */
  30.  
  31. BOOL FAR PASCAL FApplicationExit(LPGLOBALS pGlob)
  32.     {
  33.     BOOL        fRet=TRUE;
  34.  
  35.     //Free the stringtable.
  36.     if (NULL!=pGlob->hMemStrings)
  37.         LocalFree(pGlob->hMemStrings);
  38.  
  39.     //Free the DOCUMENT we allocated.
  40.     PDocumentFree(pDoc);
  41.     return fRet;
  42.     }
  43.